<?php
namespace app\index\controller;

use think\Controller;
use think\Db;
class Books extends Controller
{
    public function Books()
    {
         $page=request()->get('page',1);
         $limit=request()->get('limit',6);

         $arr=Db::table('book')->paginate($limit,true,['page'=>$page]);

         return $arr;

    }
}